package com.ghca.myinfo3.repository;

import com.ghca.myinfo3.entity.owner.Owner;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2016/12/17.
 */
@Repository
public interface OwnerRepository extends JpaRepository<Owner, Integer> {

    List<Owner> findByName(String name);

    Owner findByNameAndPhone(String name, String phone);
}
